package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;


/**
 * 桃花传音, 语音文件
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "peachblossom")
public class Peachblossom implements Serializable {
    @Id
   private ObjectId id;//主键

    private Long userId;//用户id
    private Long created;//创建时间
    private Integer remainingTimes = 10;//剩余次数（第一次保存说明已经读取一次了）
    private String soundUrl;//读取的语音

}
